package com.felix.controller;

import com.felix.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: DubboParent
 * @ClassName DemoController
 * @description:
 * @author: yaoguipei
 * @create: 2022-01-18 22:32
 * @Version 1.0
 **/
@Controller
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/demo")
    @ResponseBody
    public String demo(){

        return demoService.demo();
    }
}
